﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Lari.Configuration;

namespace Lari.Services.ViewModel
{
    public class SpecializationModel
    {
        public int ID
        {
            get;
            set;
        }

        [StringLength(100, ErrorMessage = MessageCode.Generic.LengthExceeded)]
        [Required(ErrorMessage = MessageCode.Generic.ReguiredFldMsg)]
        public string Name
        {
            get;
            set;
        }

        public int DepartmentID { get; set; }
    }
    public class SpecializationListModel
    {
        public string DepartmentName { get; set; }

        public int DepartmentId { get; set; }
        
        public string OldSpecializationName { get; set; }

        [StringLength(100, ErrorMessage = MessageCode.Generic.LengthExceeded)]
        [Required(ErrorMessage = MessageCode.Generic.ReguiredFldMsg)]
        public string SpecializationName { get; set; }
        
        public List<SpecializationModel> Specializations { get; set; }
        
        public EditingMode ActionMode { get; set; }

        public int SpecializationsId { get; set; }
    }
}
